package com.ny508;

import java.io.FileInputStream;

public class Test01 {
    public static void main(String[] args) {
        FileInputStream fileInputStream = new FileInputStream("1.txt");
        byte [] buffer = new byte [1024];
        int bytesRead;
        while ((bytesRead = fileInputStream.read(buffer))!=-1){
            String content = new String(buffer,0,bytesRead);
            System.out.println(content);
        }
    }

}
